<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of TTableChave
 *
 * @author User
 */
class TTableChave{
    
    private $obj;
    
    public function __construct(array $obj) {
        $this->obj = $obj;
    }
    
    public function render()
    { 
        $html = '<table>
            <thead>
                <tr>
                    <th>Data</th>
                    <th>Professor</th>
                    <th>Laboratorio</th>
                    <th>Observacao</th>
                    <th>Hora Entrega</th>
                </tr>
            </thead>
            <tbody>';
 foreach($this->obj as $ob){
        $html .= "        <tr>
			<td>{$ob->getDtInicialControle()}</td>
			<td>{$ob->loadProfessor()}</td>
			<td>{$ob->loadLaboratorio()}</td>
			<td>{$ob->getObservacaoControle()}</td>
			<td>{$ob->getDtFinalControle()}</td>
		</tr>";
 } 
$html .= '            </tbody>
        </table>';
        
        return $html;
    }
}

?>
